fixed js order, fixes dioscouri/amritasingh-f3#40