Attempting to fix the deckcreate javascript