Split demo functions to different javascript file

Hey,

I've splitted demo functions into different file so you dont have to edit js file to remove it.

You just remove include from html.

consider merging.