Add before/after method modifiers to your Javascript objects