Javascript String To Number Best Practices