Fix javascript parseInt function call.