Although your code seems correct, you may wish to alter it a little (for turbolinks & syntax efficiency):
load = ->
$(document).on "click", "li", ->
console.debug "item clicked"
$(document).on "change", "input", ->
console.debug "text changed"
$(document).ready load
$(document).on "page:load", load
If you're receiving an error, it's likely be cause of something else or some strange formatting issue with