Added sort! in iterate_javascript