added pointer to button, updated js