Use javascript instead of html to make all blocks hidden to start