Moving js panel to html, still incomplete though - will fix