Syntax fixes

Applied minor patches in order to run grunt