Javascript helper library