added rule for js files