added javascript tests