split demo functions to different javascript file
Merge pull request #36 from jakubsacha/master

Split demo functions to different javascript file