Ignore Gruntfile and package.json.
Removed duplicated use strict statement.
Use window.define instead of define to avoid strict errors.