Added the javascript tests