Simple require and module definition for Javascript in browser