Cleaned up code on index.jade and index.js (public)