Update tgcommon.js

tab to blank space
showLayer update