Bugfix: load model from external JS file