silly JS syntax errors