Simple Javascript AOP implementation