JSAPI Location bugfix

Fixed JSAPI location setter bug