Function to restrict only numbers in textbox using javascript