reorder & beautify js
add custom event to open/close top bar
custom event to avoid preventedDefault in click
change event name, unbind event
Merge pull request #848 from letanure/reboot

JS beautify, js event/method to open curtain