added demo js, added associations