JSHint: 'MAS' is not defined. (at line 14)