added data to javascript