Move JS into separate file
Use better jade syntax for code