-replace request of with framework's request
-move js stuff elsewhere