add basic files for js rewrite