Put contents of main script tag into separate file