javascript template fixed