fixing api js url