added win helper object and fixed an js syntax error
added channel callback object
added log to channel object
added cookies to resource request
remove test codes