Fixed issue with up & down

Fixed issue with up & down when double-pressed.
Adjusting scope.
Adding click.js for handling clicks.