javascript AOP test