Converted Assignment 2.2 to .js

Removed console.log test suite;
Removed script tags for HTML and converted file to .js;