JavaScript misc library.