Initialise var deck for production because github pages will not replicate your directory structire in order for you to use the url in the ajax request.