Fix javascript params rendering