fix js appending