adding callback in attempt to get around cross origin resource sharing spec