Making a dynamic menu using jquery and moving jquery link from remote to local