make a better folder structor for browser side code