Trust me when I say follow these steps to make a simple application to reset the Dock:
1. Open /Applications/Utilities/AppleScript Editor.app and create a new project.
2. Put in the code
and save it as an application and save (and name it whatever you want) to your Desktop.
3. To reset the Dock just double click that AppleScript application to reset your Dock.