fixed N/A bug in totalprice JS