add javascript tests