vendor and main into one mainjs