Added port to the 'basepath' URL to allow for non-standard ports like MAMP's 8888.