refactoring
cleanup
code and test cases for #216 hide-show javascript or xpath functions