Try changing to content instead of resource for script.