Refactored JS Code

Refactored Captcha Parsing in JS Code
Added .idea/ to .gitignore, for WebStorm/PyCharm