Javascript - append div in a container with random classes and positions