using the js code as is/ adding slightly optimised images