Reordered javascript concatenation