delete images
refactor javascript dependency