Refactored JS Code

Refactored Captcha Parsing in JS Code
Added .idea/ to .gitignore, for WebStorm/PyCharm
Merge pull request #2 from aneesh-neelam/master

Refactored JS Code