Updating Javascript usage

I'm not really sure about the test coverage for this, but Travis seems to be okay with it.  What say you all?