Js add file attr