extracted index js to general.min