with JS functions and folders