Update final.html

JS OOP 
- renamed the Class to have a capital letter
- moved getRandom to being a class function 
- moved context to being a local variable