Defer loading javascript optimization