homework 

It is not quite what I had in mind, but I suppose it will have to do for now. 
Not a blocker to your app working... but it can be cleaner to read when you indent your code blocks. Theres a lot of tools in sublime that can help automate this for you (http://stackoverflow.com/questions/8839753/how-do-i-reformat-html-code-using-sublime-text-2)