support to javascript hack