implemented condition monitor, removed jQuery