Javascript Function Is Not A Function Reactor Watches