Made changes on the css names to use all dash style instead of camel case
Changed .css calls to .show() and .hide(). Also used shorter notation for if statement from if mode !=null to if mode?
Removed debugging console.log statements
added myself as a contributor
removed unnecessary return statements