export to javascript format