add refresh functionality, rebuilt js