separate the javascript auto560