Refactored js and polished README