Added update method

Like we described here: https://github.com/mkuklis/depot.js/commit/63f48c3f14fcc812662d8f0c73480ae91f6fde1d