Fix JSHint errors in m.js