Modified config & location js