Refactor with jQuery Ready.