Switch to using JSTypes to wrap Javascript objects in Julia types