Removes anchor and replaces JS function