js and template update.