cleaned up js with jshint
fixed rendering in <= 800 px mode