updated api url
added js