fixed bug #494

When no script is loaded, and we create a new script,
we need to set wb.scriptLoaded to be true so the javascript_runtime.js loads
for new scripts.