moved inline javascript to separate script file
added jade