switch the source of the js