JS hint fixes and moved all the templates inside the views directory