Javascript perforamnce improvements for certain selectors.