linked js, restructre files