Cleanup javascript.

openscholar/openscholar#3192