added dynamic loading of js files for browser