added html5 location mode
updated controller to get images json from server