Like python's %, for javascript, with some extra features