Add an example for aop in javascript