revise web.js use buffer
bug fix for missing parenthesis