Often on websites, while registering, there's a button in the front of username box, which tells if the username is available or not. i think it is done by javascript and php. can someone help how i can create that javascript?