Make code climat a bit more happy with script.js

- split _bindPlanEvents
- few jshint "errors": code climat doesn't seem to respect settings from
  package.json