removed debugger statement
splitting of the javascript files
moved js logic from jade file to js files