Accessing js from controller

Hi! I've been struggling with a ajax/jquery html fraction update for a couple of days now, can't seem to get my head around it. I can't get my update.js.erb file to run, this is how my relevant files look like: