move vendor js into head for better reusability