Pass Input Value To Javascript Function Definition Is Not Allowed