Commented out all console.log() for IEs sake