I\'m struggling to get a simple bit of Javascript running inside wordpress. The code is taken from an example on the site https://www.daterangepicker.com/ and it\'s this: