Update functionality.js

Fixed missing device images, image display, Previous and Next buttons, rollover title display, and displayed range.