fix js stuff