Fixing source map root
Fixing bug -- when using jQuery, shift() isn't available