Adding ecmascript rule