The order of the coordinates needs to be switched within the javascript, i.e. lat comes first.
The order of the coordinates needs to be switched within the javascript, i.e. lat comes first.