implemented parse js data