finished javascript templates