added possibility to inject javascript for page element