AOP of js