separate js with html;resize div