Load javascript after view code