I am trying to concatenate an "http://" to the variable \'bar\' if it does not already exist, before sending it to ajax where it will be added to the database and will