Changed regex for options.html, refactored some usable code,
made attributes change for total time