Removed old-style document.ready call

also did some code styling in the options page.