change formatting according to PhetStyle.xml
jsHint validation errors fixed
names changed. Now view/shapes/resistor-view instead of view/shapes/ResistorView/
moved public functions to prototype
changes due to review commited