Remove ejs, just use javascript to find port