Adding js code for opening resource linker on button for selecting resource for rule