[javascript] How to Set OnClick attribute with value containing function in ie8?