Joe #40 handle routes better in javascript in case a user accidently puts .html at the end of real route