got jquery to register but still contains bugs