fixed loading of js assets