removed extraneous script tags from templats