js: Clean up javascript
js: Clean up javascript

* Add documentation to SelectionModel.
* rename variables to camelCase to follow javascript conventions
* reindent it to consistently. Use 4 tabs indentation.
* jslint it.

alkadis/vcv,phihag/adhocracy,DanielNeugebauer/adhocracy,SysTheron/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,SysTheron/adhocracy,liqd/adhocracy,alkadis/vcv,phihag/adhocracy,liqd/adhocracy,phihag/adhocracy,DanielNeugebauer/adhocracy,liqd/adhocracy,SysTheron/adhocracy,phihag/adhocracy,liqd/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,alkadis/vcv,phihag/adhocracy,DanielNeugebauer/adhocracy