Fix weird sequence of rjs loading for code