Tidy beacon code & make JSLint compliant
Make _rex.js pass jslint
Make console.js pass jslint
Make beacon.js pass jslint (apart from options)