Changed back to integer data type and modified js file