lint js and tweak for IE10 usability