cast price into int in javascript