Remove unused JavaScript file
Update the image file extension check