Add javascript handler to check problem