Added yaml2datajs function.