moved to the seprate javscript file
jsonifying the objects