Adds JavaScript to make resources menues react to click event