There is an error in line:
selectedScale = ->
I think ther shouldn't be @ sign before name...
It occure with Uncaught Error: Syntax error, unrecognized expression: [@name="asset_scale"]:checked when clicked on image after upload.
Chrome 18.0.1025.168 (Developer Build 134367 Linux) Ubuntu 12.04 was used