How to calculate the number of days between two dates in javascript? See the article Privacy, permissions, and information security for details on security issues and how