Fix js cache loading bug