removed absolute path from node-static and fixed minor JS syntax issues