finish up the demo application
split the single js file into multiple files