Fixed the js location string