Update javascript docs with note on compass.