move background image out of html file into js