Abstracted javascript function for oOw We Work