FEATURES jQuery replacement of some javascript