fix duplicate javascript error with all coffeescript files
get rid of duplication in coffeescript, add toggleFunction and clearLink functions
make scroll_container vary in size depending on its content