Applying template. Removing .js