Update common.js

Fix for IE8: Array.prototype.indexOf() support