updated to remove jQuery