change js to min and change aside event