Concat JS in the right order