reorganized to support shared lib folder for .js files