Fix: Requirejs loading

Move declaration of availableTransitions on the top.