Removed a couple of extraneous end script tags causing JS problems