Added dependency and browser compatibility