add es5 flag to suppress catch is a reserved word message
fix jslint error