Updating public script resource to handle default templates