Cleaned up loose ends left behind in client js