interface.js refactored LIKE A BOSS