add js code for load img