extract Purchases's form javascript to its own file
add jquery selectize library
try selectize