flattening the js directory