JS tweaks

I've discussed these with @cvrebert and he agrees. I'm opening this to hear what the rest of you think too, before merging.

@connor @connors @fat @mdo 

PS. those `offsetHeight` and `offsetWidth` calls should be clarified more or something.