add toggle visibility js and global vars, manually compile into test.js