added createStore js function