Test js code