attempt 5 to fix js bug