Refactor $.fn.css call

Use a hash object instead of multiple calls to $.fn.css.