ebooklibrary using requirejs