Wire up js to controller