Hello I am trying to use Dudamobile to create a mobile site for my edin theme
Hi ash.nouveau - I'm curious as to why you need this code when Edin is a responsive theme designed to adapt to all mobile devices automatically. Why would you want to make a separate mobile site?
where is the header code I should put this in and will it work?
If you really wanted to do this, you would need to first create a child theme, so your tweaks won't be overwritten when updating the theme. Here are some guides in case you haven't made one before:
http://codex.wordpress.org/Child_Themes
http://op111.net/53/
http://vimeo.com/39023468
After setting up your child theme, you would make a copy of header.php from your parent theme and then add your JavaScript code above, perhaps just before this line:
<?php wp_head(); ?>