Updated parseAttrs() to avoid depending on old jQuery $.browser()
function