Clean up js templates.