updated cr script, in a functional mood
defer loading of js