Added error handling in payment and removed non-existant JS file from index