fixes for non-jQuery elements