String format method for JavaScript