An object agnostic authorization layer for javascript