fix js and src errors