refactoring
add insert_js property to settings