changed user sub property to KeyProperty, fixed looping in the javascript