Added automatic function folding

Added automatic function folding for Javascript, XML, PHP, Vimscript and Bash script.