froze sinatra version to 1.3.3
js refactoring