Add javascript tests