String.format for Javascript