Command design pattern for javascript