js refactoring
js fixes; cooler buttons
Merge pull request #1 from cy6erskunk/master

JS refactoring (still WIP) and UI improvements