Added javascript side getting data