define server path as global variable for js file.