Better build process when compiling for web
Added optional show hide speed parameter