         )
 
     removeMobileViewport: () ->
-        $("meta[name=\"viewport\"]").remove()
+        $("head meta[name=\"viewport\"]").remove()
 
     setfn: (fn) ->
         @._listener() if @.listener


            meta.attr("content", value or "")
        else
            meta = $("meta[name='#{key}']")

            if meta.length == 0
                meta = $("<meta name='#{key}'/>")

        return if not key

        if key == "title"
            meta = $("head title")

            if meta.length == 0
                meta = $("<title></title>")
