** Tidied up some JS OOP **

JS OOP 
- renamed the Class to have a capital letter
- moved getRandom to being a class function 
- moved context to being a local variable

(
 actually did this to test and see whether I understand how our new git process works
 this is cool code OW - and looks pretty too ;-)
)