tests for js