Move JavaScript template options to a separate file