JS - moved getters into seperate prototype functions
Extracted sample query result into test resources