inline js append model adopted