Moved JS around for rails compilation and added keepalive for redis keys
Deleted some JS