Remove old script links
Switching to using Error class for errors. Developed a few custom Error classes.