separate admin and public form js init