doesn't render javascript on ajax request