Slight correction in JS invocation