Separate js tests from html