Sainsmart LCD2004 newbie question - can't get it working

Right, first things first, Mr(?s) Howlett.

Before posting code with all good intentions (even three years after the event), go and read the instructions.

Now go back and modify your post (use the "More --> Modify" option to the bottom right of the post) to mark up the code as such so that it can be conveniently and accurately used (not to mention, checked by others).