Refactored some JS, deleted draft files, added in requirements.txt file