Correct script integration in locations view