             $ = window.$
             scripts = getScripts window, @root
             scripts.forEach (script) =>
-                if ($ script).data 'precompile'
-                    s = @find '/' + normalize script.src
+                if script.precompile
+                    s = @find '/' + script.src
                     s.compilerType = 'precompiler'                   
 
             callback()

        .map ->
            src = ($ @).attr 'href'
            src = normalize src
            path = absolutize src, root
            type = ($ @).attr 'type'
            {src, type}
        .get()

            # strip out querystring, if any, and turn
            # into an absolute path
            src = normalize src
            # path = absolutize src, root
            type = ($ @).attr 'type'
            precompile = ($ @).data 'precompile'
            {src, type, precompile}
        .get()
        .filter (script) ->
            script.src isnt utils.jQueryPath
