javascript micro template