HTML5 location compatibility, few minor improvements