apply grant to js and css.