Added a javascript callback function for switching site langauge.