Add js method to get current table
Fix return value for getCurrentTable() method