changed js to alert when decimals are used