fixed code formatting
fixed jshint warnings
updated demo style