Updated to use custom JavaScript formatting.