Correct JSHint errors and exclude openlayer.js