move disk details javascript into seperate file