"unexpected token ;" syntax error fix using controller injection