Search engines appear to be ok with noindex tags generated by JS, so canonical links should be fine too