updated gadgets JS