added a slew of JS bits;
g