seperate post_goal and term functions
add new tests for Compound
add utility function to convert javscript values to prolog ones