minify js
added handeif