The course text is The WebGL Programming Guide by Matsuda and Lea.
A recommended supplementary text is Computer Graphics: Principles and Practice by Foley et al. Either the second edition in C, or the third edition should be fine.
A reasonable (and free!) reference on JavaScript is Eloquent JavaScript
A references for Linear algebra is
David Eberly makes available 3 sets of notes related to collision detection.