Bug 909640 - Fix js warnings in shell.js r=gwagner