Update viewer.js

Remove the sequence control update and put it into its own function. This way it can be called after a tilesource is loaded.