JS hooked up to models via ajax