Added some javascript tests