improve js effect