cache functions and avoid to use javascript eval function
prevent visualisation from freezing
removed timeout
Merge branch 'develop' of github.com:bendisposto/prob2 into develop