phase-table.js: Converted module to prototype based class