Forgot to wrap JS in a closure