html_server now can serve img files
solve crash when img is nil
use lua files for js instead of txt so we can insert lua variables