[#2]: Fix broken javascript calls
[#2]: Fix broken javascript calls

At some point, using $() seems to have broken in Chrome. Replaced those
calls with equivalent DOM calls in vanilla Javascript.

tangledhelix/focusatwill-in-google-chrome,tangledhelix/focusatwill-in-google-chrome