Add code to head tag for devices