Added additional methods. Combined toast.js with this file