Debugging something new

Corrected bug in core.js where script prolog and epilog were not being executed