Reorder js specs
Merge pull request #672 from lonelyplanet/if-reorder-specs

Reorder js specs