map js move from header ot separate file