adding java script tests