polished javascript and options page