fixed publishing to jQuery