created js module
created fetching method