Added first tests for JS functionality