Add javascript for tab switching.
remove temp file.