String Formatter for Javascript