changed js to use remote server