How to Transform the Character Case of a String in JavaScript - SitePoint