added save option and fixes for loading of depending js files