load images dynamically

adding navigation in Javascript instead of html