Refactor page specific JS using jquery-readyselector