trying to implement osnz js resouce