Making hash links behave using jQuery