Added buying item feature
update javascript version of this project
Added Inn