Added number funtion to .js file.