adding js method to request table names
merging with colleen