reformat and enqueue js