added demo, moved js to src folder