add attributes to javascript files