JavaScript: CamelCase string conversion to Proper Case