Add JS methods for Pickle class.