fix js ordering that made firefox sad