Upgraded the demo file to jQuery 1.10.1.
Made the test file more readable in a browser and upgraded to jQuery 1.10.1.
Used Date.parse() as a fallback solution.
Fixed a bug where milliseconds were not taken into account.
Added more comments and switched back to Date.getTime() which is more explicit.