[ ] Line comments should have whitespace between the // and the first letter of the line comment. See the preceding example.
For example, in Lattice.js:
//Find top, center atom and place it in sites[0]. sites[1,2,3] are all still the origin.
//We only need to do this for max x and max y if we need to optimize. Could be separated out
if((Math.abs(xCos - ySin) <= topRowSpacingHalf) && ((Math.abs(yCos - xSin) > this.sites[0].y))) {
Related to #1 (code review).
For example, in Lattice.js: