Edited the share webscript to be more backwards compatible