Format javascript