cleans up dir, js in individual files