Fixed egg scaling

Also added ScriptCache class, as yet unused