Adding a override function to the SOS javascript