Fixed ScriptController::loadScript()

It is necessary to prefix the path with the resource path when calling dofile directly.