adding assignment2.js to jamesStiehl branch

sorry i did not know how to submit a pull request until this AM :-)