updated lesson 2 in JS

Minor edits and added methods to object example :)