Ajax working on button change unless video params are given