separating js code to multiple files; stacktrace display implemented