views: Fix javascript loading order.