Integrating Javascript with Django API