Now data submision uses proxy settings and file get contents
Data is sent using POST and in json format
removed onclick and used $.fn.on to register callbacks