Bug fixes, almost translates jquery
Bug fixes. Successfully tested on JQuery!!! Check jquery.py.