Its generally not a good idea to embed javascript in html like this, instead inside dashboard.js you can do something like 

http://pppaste.com/paste/40sdo4/