Added number function to js file.