Move JS ot stylist.js, add a refresh method