Add JavaScript test coverage